package airthmetic.exercise.sort;

import airthmetic.exercise.sort.cmp.*;
import airthmetic.exercise.sort.tools.Integers;

public class Main {
    public static void main(String[] args) {
        Integer[] arr1 = {77, 2, 15, 20, 3, 77, 88, 12, 103};
        Integer[] arr2 = Integers.copy(arr1);
        Integer[] arr3 = Integers.copy(arr1);
        Integer[] arr4 = Integers.copy(arr1);

//        BubbleSort1 bubbleSort1 = new BubbleSort1();
//        bubbleSort1.sort(arr1);
//        System.out.println(bubbleSort1);
//        for (Integer integer : arr1) {
//            System.out.println(integer);
//        }
//
//        BubbleSort2 bubbleSort2 = new BubbleSort2();
//        bubbleSort2.sort(arr2);
//        System.out.println(bubbleSort2);
//        for (Integer integer : arr2) {
//            System.out.println(integer);
//        }
//
//        BubbleSort3 bubbleSort3 = new BubbleSort3();
//        bubbleSort3.sort(arr3);
//        System.out.println(bubbleSort3);
//        for (Integer integer : arr3) {
//            System.out.println(integer);
//        }

//        SelectionSort selectionSort = new SelectionSort();
//        selectionSort.sort(arr4);
//        System.out.println(selectionSort);
//        for (Integer integer : arr4) {
//            System.out.println(integer);
//        }


        new HeapSort<Integer>().sort(arr1);
        System.out.println(arr1);
        for (Integer integer : arr1) {
            System.out.println(integer);
        }

    }
}
